export default {
  namespaced: true,
  state: {
    count: 0,
    name: '博为峰',
  },
  getters: {
    mul(state) {
      return state.count * 2;
    }
  },
  mutations: {
    jiaM(state, val) {
      state.count += val;
    },
    jianM(state, val) {
      state.count -= val;
    }
  },
  actions: {
    jiaA(content, val) { //上下文
      content.commit('jiaM', val);
    }
  }
}
